#pragma once
#include <iostream>
#include <list>
#include <QPropertyAnimation>
#include <QMessageBox>
#include <QTimer>
#include <QLabel>
#include <QKeyEvent>
#include <QRandomGenerator>
#include <SDL.h>
#include <SDL_mixer.h>
using namespace std;
inline QImage frameImage("./MCtextures/button_selected.png");
inline QImage headImage("./MCtextures/observer_front.png");
inline QImage tailImage("./MCtextures/observer_back_on.png");
inline QImage bodyImage("./MCtextures/observer_top.png");
inline QImage foodImage("./MCtextures/gold_block.png");
inline bool open = Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024);
inline Mix_Chunk *click = Mix_LoadWAV("./Sounds/click.ogg");
inline Mix_Chunk *front_bgm = Mix_LoadWAV("./Sounds/otherside.mp3");
inline Mix_Chunk *game_bgm = Mix_LoadWAV("./Sounds/pigstep.ogg");
inline Mix_Chunk *shoot = Mix_LoadWAV("./Sounds/shoot.ogg");
inline Mix_Chunk *eat = Mix_LoadWAV("./Sounds/amethystbreak.ogg");
inline Mix_Chunk *fail = Mix_LoadWAV("./Sounds/growl.ogg");
#define frame_size 20
#define head_down 0
#define head_up 1
#define head_left 2
#define head_right 3
#define max_tick 1000
#undef main